package com.qcby.service.impl;
import com.qcby.dao.ClazzDao;
import com.qcby.entity.Clazz;
import com.qcby.entity.Student;
import com.qcby.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClazzServiceImpl implements ClazzService {
    @Autowired
    private ClazzDao clazzDao;

    @Override
    public List<Clazz> list(Student student) {
        return clazzDao.list(student);
    }

    @Override
    public List<Clazz> SearchLesson(Clazz clazz) {
        return clazzDao.SearchLesson(clazz);
    }

    @Override
    public int AddLesson(Clazz clazz) {
        return clazzDao.AddLesson(clazz);
    }

    @Override
    public int UpdateLesson(Clazz clazz) {
        return clazzDao.UpdateLesson(clazz);
    }

    @Override
    public int DeleteLesson(Integer id) {
        return clazzDao.DeleteLesson(id);
    }
}
